UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The Security Token Service must have Multipurpose Internet Mail Extensions (MIME) that invoke operating system shell programs disabled.


Overview

Finding ID Version Rule ID IA Controls Severity
V-256756 VCST-70-000012 SV-256756r889238_rule Medium
Description
MIME mappings tell the Security Token Service what type of program various file types and extensions are and what external utilities or programs are needed to execute the file type. By ensuring various shell script MIME types are not included in "web.xml", the server is protected against malicious users tricking the server into executing shell command files.
STIG Date
VMware vSphere 7.0 vCenter Appliance STS Security Technical Implementation Guide 2023-06-15

Details

Check Text ( C-60431r889236_chk )
At the command prompt, run the following command:

# grep -En '(x-csh<)|(x-sh<)|(x-shar<)|(x-ksh<)' /usr/lib/vmware-sso/vmware-sts/conf/web.xml

If the command produces any output, this is a finding.
Fix Text (F-60374r889237_fix)
Navigate to and open:

/usr/lib/vmware-sso/vmware-sts/conf/web.xml

Remove all of the following nodes lines:

application/x-csh
application/x-shar
application/x-sh
application/x-ksh

Restart the service with the following command:

# vmon-cli --restart sts

Note: Delete the entire mime-mapping node for the target mime-type.

Example:


sh
application/x-sh